<!DOCTYPE html>
<html lang="en">
<head>
	<!-- The below 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
	<meta charset="utf-8">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- Document Title -->
	<title>Toxic filter</title>

	<!-- External CSS -->
	<!-- for bootstrap -->
	<link rel="stylesheet" type="text/css" href="../static/css/bootstrap.css">
	<!-- for global style -->
	<link rel="stylesheet" type="text/css" href="../static/css/style.css">
	<!-- font style -->
	<link rel="stylesheet" type="text/css" href="../static/css/font.css">
	
	<!-- for bootstrap working -->
	<!-- The below 2 JS file must come here in the head -->
	<script type="text/javascript" src="../static/js/jquery-2.2.4.min.js"></script>
	<script type="text/javascript" src="../static/js/bootstrap-3.3.5.min.js"></script>

	<!-- for next page -->	
	<script>
		$(document).ready(function(){
			$("a").on('click', function(event) {
				if (this.hash !== "") {
					event.preventDefault();
					var hash = this.hash;
					$('html, body').animate({
						scrollTop: $(hash).offset().top,
					}, 800, function(){
						if (history.pushState) {
							history.pushState(null, null, hash);
						} else {
							location.hash = hash;
						}
					});
				}
			});
			/*$('#ContactForm').submit(function(e) {
			$("#FailureMessage").hide();
			$("#SuccessMessage").hide();
			$("#LoadingMessage").hide();
			var email = $('input[name="from"]').val();
			console.log('em', email);
			if (!email) {
				$("#FailureMessage").text("Please include an e-mail address so we can get back to you.").show();
				return false;
			}
			$("#LoadingMessage").show();
			$.post('contact', $("#ContactForm").serialize())
			.done(function() {
				$("#SuccessMessage").show();
				$("#LoadingMessage").hide();
			})
			.fail(function() {
				$("#FailureMessage").text("Sorry, something went wrong.").show();
				$("#LoadingMessage").hide();
			});
			return false;
			})
*/
			$(document).scroll(function() {
				var top = $(document).scrollTop() + 200;
				var closest = '';
				$('.page').each(function() {
					var pageTop = $(this).offset().top;
					if (pageTop < top) closest = $(this).attr('id');
				});
				$('.navbar li').removeClass('active');
				$('.navbar li > a[href="#' + closest + '"]').parent().addClass('active');
			});
		});
	</script>
</head>
<body>
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a href="#Title" class="navbar-brand">Toxicophore Filter</a>
				<a data-toggle="collapse" data-target="#NavbarCollapse" class="navbar-toggle collapsed">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
			</div>
			<div id="NavbarCollapse" class="collapse navbar-collapse">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#Title">Home</a></li>
					<li><a href="#Products">Result</a></li>
					<li><a href="#">Help</a></li>
					<li><a href="#">Contact</a></li>
				</ul>
			</div>
		</div>	
	</nav>

	<!-- Simple introduction of Toxicophore Filter -->
	<div id="Title" class="page">
		<div class="container">
			<div class="row">
				<div class="col-xs-12 col-md-10 col-md-offset-1 col-lg-9 col-lg-offset-2">
					<div class="main-title">
						<img src="../static/img/logo/toxicity-2.jpg">
						<div class="main-title-text">
							<h1>Toxicity rejection</h1>
							<h4>Toxicohpore filter helps drug developers obtain more safety compounds</h4>
						</div>
					</div>
				</div>
			</div>
			<div class="try-it-button text-center">
				<a href="#Products" class="btn btn-lg btn-primary">Enter compound</a>
			</div>
			<div class="next-page-button">
				<h4>Products and Features</h4>
				<a href="#Products" class="btn btn-sm btn-link"><img src="../static/img/arrow-down.svg"></a>
			</div>
		</div>
	</div>
	
	<!-- MarvinJS component: edit compounds structure -->
	<div id="Products" class="page page-even">
		<div class="container">
			<div class="row">				
				<div class="col-xs-12 col-md-6">
				<h3>Search by structure</h3>
					<iframe id="sketch" src="../static/marvin/ui/editorws.html" 
						style="min-width: 540px; min-height: 500px; border: 1px solid darkgray;"></iframe>
				</div>
				<div class="col-xs-12 col-md-6">
					<h3>Search Options</h3>
					
				</div>
			</div>
		</div>
	</div>	

	<div class="footer text-center">
		<span>Copyright © <a href="http://www.rcdd.org.cn" target="_blank" style="color:#4a595d ">RCDD </a>2016 - All Rights Reserved</span>
		<span id="records">
			<script type="text/javascript" src="//ri.revolvermaps.com/0/0/3.js?i=89g7gpemh88&amp;b=0&amp;s=40&amp;m=2&amp;cl=faf0f0&amp;co=0e0c40&amp;cd=ff0000&amp;v0=60&amp;v1=60&amp;r=1" async="async"></script>
		</span>		
	</div>

	<!-- for marvinJS working -->
	<script src="../static/marvin/ui/js/marvinjslauncher.js"></script>

	<script src="../static/js/search.js"></script>
	
	<!-- for marvinJS initialization -->
	<script type="text/javascript">
		$(document).ready(function(){
			marvinInitial();
		})
	</script>
</body>
</html>